/**
 * 
 */
package org.yelongframework.spring.web.multipart;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;
import org.yelongframework.lang.Nullable;

/**
 * 多部份请求支持
 * 
 * @since 1.0.0
 */
public interface MultipartRequestSupport {

	@Nullable
	MultipartRequest getMultipartRequest(HttpServletRequest request);

	@Nullable
	MultipartFile getMultipartFile(HttpServletRequest request, String name);

	@Nullable
	List<MultipartFile> getMultipartFiles(HttpServletRequest request, String name);

	@Nullable
	Map<String, List<MultipartFile>> getMultipartFilesMap(HttpServletRequest request, String name);

}
